package org.csu.onlineedubackend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@TableName("survey")
@Data
public class Survey {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private String title;
    
    private String description;
    
    private Integer targetRole; // 1=学生，2=老师，3=全部
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    // 非数据库字段，用于统计
    @TableField(exist = false)
    private Integer participantCount; // 参与人数
} 